package org.gten.gegedexin.service;

import org.springframework.stereotype.Service;

@Service
public class CollectMail {
    MailInfoServiceImpl mailInfoService;
    public void setCol(String mailID){
        if(mailInfoService.getMailInfoById(Integer.parseInt(mailID)).get(0).getIsRead()==3)
            mailInfoService.setCol(Integer.parseInt(mailID));
        else mailInfoService.setRead(Integer.parseInt(mailID));
    }
}
